<?php /* -------  powered by juanma  ----------- */ 
 require_once 'BaseDeDatos.php';
 require_once 'MySql.php';
 require_once 'Sql.php';

 abstract class Index
{
    
    public function run(){
    
        $bd = new BaseDeDatos( new MySql());
        
        $sql = new Sql();
        
        $sql->addTable('users');
        $sql->addWhere('id=3');
        //$sql->addWhere('id=2');
        $sql->addWhere("name = 'juanma'");
        
        $user = $bd->ejecutar($sql);
        
        echo highlight_string(var_export($user,true));        
        
        
        foreach($user as $us){
            echo $us[6];
        }
    }
}

Index::run();
?>
